@import 'constant';
@import 'utils';

a {
    color: inherit;
    text-decoration: none !important;
}

ul {
    padding: 0;
}

.navbar {
    .search-submit {
        background-color: transparent;
        width: 64px;
        height: 100%;
        border: none;
    }
}

.blog-title {
    font-size: 20px;
    color: #666;
    margin-bottom: 20px;
    margin-top: 20px;
}

.jumbotron-bg {
    background-color: #F8F8F8;
}

@media screen and (max-width: 991px) {
    .jumbotron-bg {
        background-image: url(../img/featured.png);
        background-repeat: no-repeat;
        background-size: 35%;
        background-position: bottom right;
    }
}


.hot-article {
    .hot-article__item {
        height: 378px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 5px rgba(0, 0, 0, .3);
        margin-bottom: 30px;

        .hot-article__img {
            min-height: 220px;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            background-color: #f2f2f2;
        }

        .hot-article__content {
            padding: 30px;

            .hot-article__title {
                font-size: 20px;
                font-weight: 900;
                margin-bottom: 20px;
            }

            .hot-article__foot {
                color: #666;
                display: flex;
                justify-content: space-between;
            }
        }

    }

    .carousel {
        width: 100%;
        height: 100%;

        .carousel-inner {
            height: 100%;

            .item {
                width: 100%;
                height: 100%;
                background-repeat: no-repeat;
                background-size: cover;
                background-position: center center;
            }
        }

        .carousel-control {
            width: 50px;
            height: 50px;
            top: 75%;
            background-image: none !important;

            &.left {
                left: 85%;
            }

            &.right {
                left: 92%;
            }
        }

        .carousel-caption {
            font-size: 25px;
            text-align: left;
            left: 5% !important;
            max-width: 75%;
        }

    }
}


.latest-article {
    margin-bottom: 20px;

    .latest-article__item {
        display: block;
        margin-bottom: 20px;
    }

    .latest-article__img {
        height: 150px;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        background-color: #f2f2f2;
        margin-left: -15px;
        border-radius: 10px;
    }

    @media screen and (max-width: 767px) {
        .latest-article__img {
            height: 250px;
        }
    }

    .latest-article__content {
        height: 150px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .latest-article__title {
        font-size: 20px;
        font-weight: 900;
        margin: 20px 0;
    }

    .latest-article__foot {
        color: #666;
        display: flex;
        justify-content: space-between;
        margin-bottom: 30px;
    }
}

.latest-comment {
    .latest-comment__item {
        display: flex;
        box-sizing: border-box;
        height: 115px;
        border: 1px solid #eee;
        border-radius: 5px;
        padding: 25px 25px 0 25px;
        margin-bottom: 30px;

        .latest-comment__avatar {
            display: block;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 10px;

            img {
                width: 100%;
                height: 100%;
            }
        }

        .latest-comment__content {
            flex: 1;
        }

        .latest-comment__header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;

            .latest-comment__author {
                color: #687385;
                font-size: 16px;
                font-weight: 700;
            }

            .latest-comment__date {
                color: #ccc;
                font-size: 12px;
            }
        }
    }
}



.hot-blogger {
    .hot-blogger__item {
        display: block;
        width: 90px;
        height: 90px;
        border-radius: 5px;
        overflow: hidden;
        background-color: pink;
        margin-bottom: 20px;
        border: 1px solid #ddd;

        img {
            width: 100%;
            height: 100%;
        }
    }

    @media screen and (max-width: 1199px) {
        .hot-blogger__item {
            width: 80px;
            height: 80px;
        }
    }

    @media screen and (max-width: 767px) {
        .hot-blogger__item {
            width: 13vw;
            height: 13vw;
        }
    }
}



.footer {
    background-color: #F7F8F9;
    /*height: 300px;*/
    padding: 30px 40px 20px;

    h3 {
        font-size: 16px;
        font-weight: 700;
        line-height: 2;
        color: #666;
        margin-bottom: 10px;
    }

    li {
        /*padding-left: 30px;*/
        font-size: 12px;
        color: #999;
        line-height: 2;
        list-style: none;
        margin: 5px 0;
    }

    .copyright {
        text-align: center;
        font-size: 12px;
        margin-top: 30px;
        color: #ccc;
    }

    .collapse {
        display: block;
    }


    @media screen and (max-width: 991px) {
        h3 {
            border-bottom: 1px solid #ccc;
            margin-left: -30px;
            padding-right: 60px;
            position: relative;

            a {
                display: inline-block;
                width: 115%;
            }
        }

        .collapse {
            display: none;

            &.in {
                display: block;
            }
        }



        .glyphicon-menu-down {
            display: block;
            color: #ccc;
            position: absolute;
            font-size: 12px;
            right: 0;
            top: 10px !important;
        }
    }
}

.pager {
    margin-top: 40px;
    li {
        a {
            font-size: 13px;
            box-shadow: none;
            outline: 0;
            color: #889097;
            background: #fff;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            padding: 0;
            margin-right: 10px;
            box-shadow: 0 2px 4px rgb(0 0 0 / 20%), 0 0 0 transparent;
            transition: all .25s cubic-bezier(.02, .01, .47, 1);
            
            &.active {
                color: #fff;
                background-color: #007bff;
                border-color: #007bff;
            }

            &.control {
                font-weight: 100!important;

            }
        
        
        }


    }
}
